home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / NEWTEXTF / SOURCE_C / HANDLETO.C < prev    next >
C/C++ Source or Header  |  1990-09-10  |  271b  |  13 lines

  1. #include "MyLibrary.h"
  2.  
  3.         ResType    HandleToResType (Handle hndl)
  4.  
  5.             {ResType    theType;
  6.  
  7.             if (hndl == (Handle) 0 || !(GetHandleSize (hndl)))
  8.                 return ('    ');
  9.             MoveHHi (hndl);
  10.             HLock (hndl);
  11.             theType = CToResType (*hndl);
  12.             HUnlock (hndl);
  13.             return (theType);}